package kotlin05.src.main.java.com.example.kotlin05.s01


/**
 * 51.定义扩展文件
 *
 *
 */
fun main() {


    //在ExtentionTest5 中已经定义了 Iterator.randomTake扩展
    //在这里可以直接用
    val list = listOf("jason", "herry", "tom")
    val set = setOf("jason", "herry", "tom")

    val randomTake = list.randomTake()

    val randomTake1 = set.randomTake()

    println(randomTake)
    println(randomTake1)

}

